package com.he.singtelonmodel;

import com.he.singtelonmodel.multihread.ThreadPerson;

import java.util.HashSet;
import java.util.Set;

public class Client {
    public static void main(String[] args) {
        Set<ThreadPerson> list = new HashSet<>();
        for (int i = 0; i < 1000; i++) {
            new Thread(() -> {

                list.add(ThreadPerson.getPerson());
            }).start();
        }
        System.out.println(list);
    }
}
